package com.youlv.yl.api;

import com.youlv.yl.util.CharServerUitls;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fenghe
 * @date 2022/1/13 17:35
 */
@RestController
@RequestMapping("/api/msg/")
@Api(value = "实现短信的相关操作", tags = "实现短信的相关操作")
public class MessageController {
    @GetMapping("sendText.do")
    public String msg(String msg) {
        CharServerUitls.pushMsg(msg);
        return "消息推送成功";
    }
}
